<div class="row">
    <div class="col-sm-12">
        <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
            <thead>
                <tr role="row">
                    <th class="sorting text-center" tabindex="0">ID</th>
                    <th class="sorting text-center" tabindex="0">名称</th>
                    <th class="sorting text-center" tabindex="0">是否显示</th>
                    <th class="sorting text-center" tabindex="0">排序</th>
                    <th class="sorting text-center" tabindex="0">类型</th>
                    <th class="sorting text-center" tabindex="0">图片</th>
                    <th class="sorting text-center" tabindex="0">更新时间</th>
                    <th class="sorting text-center" tabindex="0">操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="lists" id="vo" >
                <tr role="row">
                    <td align="center">{$vo.id}</td>
                    <td>{$vo.name}</td>

                    <td align="center">
                        <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo[is_show] eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('banner', 'id', '{$vo.id}', 'is_show', this)" />
                    </td>
                    <td>{$vo.sort_order}</td>
                    <td>{$Type[$vo[type]]}</td>
                    <td><img src="{$vo.path}" width="30" height="30"/></td>
                    <td>{$vo.update_time|date="Y-m-d H:i:s",###}</td>


                <td>

                    <a href="{:U('banner/index_detail',array('id'=>$vo['id']))}" data-toggle="tooltip" title="编辑" class="btn btn-info" data-original-title="编辑"><i class="fa fa-pencil"></i></a>

                    <a title="删除" class="btn btn-danger" href="javascript:;" data-url="{:U('banner/handle_banner')}" data-id="{$vo.id}" onclick="delfun(this)"><i class="fa fa-trash-o"></i></a>
                </td>
                </tr>
            </volist>
            </tbody>
            <tfoot>
            </tfoot>
        </table>
    </div>
</div>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var href = $(this).attr('href');
        page = href.split('/');
        ajaxGetTable('search-form2', page[page.length - 1]);
        return false;
    });
</script>